package xin.marcher.wind.process.demo.processor;

import org.springframework.stereotype.Component;
import xin.marcher.wind.process.processor.AbstractRollbackProcessor;
import xin.marcher.wind.process.processor.ProcessContext;

/**
 * @author marcher
 */
@Component
public class RollBackProcessorDemoAbstract extends AbstractRollbackProcessor {

    @Override
    protected void processInternal(ProcessContext context) {
        System.out.println("RollBackProcessor " + context.get("id"));
    }

    @Override
    protected void rollback(ProcessContext context) {
        System.out.println("rollback RollBackProcessor " + context.get("id"));
    }
}
